#region <!--##session BOCommonWholeClass##-->
/*<!--##
codeGeneratorVariable_DisplayCode.Append(GeneralUsing() + Environment.NewLine);
##-->*/
namespace <!--##=RepositoryManager.Instance.Repository.ProjectName##-->
{
	public class BOCommon
	{
		private static Hashtable s_htBOTypes;

		/*<!--##
		 codeGeneratorVariable_DisplayCode.Append(BOCommonStaticMetods() + Environment.NewLine);
		##-->*/
	}
}
	
<!--##/session##-->
#endregion

#region <!--##session BOCommonStaticMetods##-->
		#region Static Methods
		
		public static Hashtable GetBOTypes()
		{
			if (s_htBOTypes != null)
			{
				return s_htBOTypes; 
			}

			s_htBOTypes = new CaseInsensitiveHashtable();
			Hashtable ht=s_htBOTypes;			

			/*<!--##
			foreach(string key in RepositoryManager.Instance.Entities.Keys)
			{ 
				Entity entity = RepositoryManager.Instance.Entities[key];
				<%@EntityIncludes%>
			##-->*/
			ht.Add("<!--##=entityName##-->",typeof(<!--##=className##-->));
			/*<!--##
			}
			##-->*/
			return ht;
		}
		
			/*<!--##		
			Repository.Security securityRelated=Managers.RepositoryManager.Instance.Repository.SecurityRelated;
			if(securityRelated != null)
			{
				string userClass = StringProcessor.Class(securityRelated.UserLoginInfo.Entity) + "BO";
			##-->*/
		public static IUserLogin GetUserLogin()
		{
			return <!--##=userClass##-->.Collection; 
		}		
			/*<!--##
			}
             else
            {
			##-->*/
        private static IUserLogin userLogin = null;
        public static IUserLogin GetUserLogin()
		{
			if(userLogin == null)
            {
                userLogin = new DummyUserLogin(); 
            }
            return userLogin;
		}
            /*<!--##
			}
            ##-->*/
		
		#endregion
<!--##/session##-->
#endregion

